#pragma once
#include "sprite.h"
#include <vector>

class MotionBlurredSprite :
	public Sprite
{
public:

	unsigned int delay;

	MotionBlurredSprite(void);
	MotionBlurredSprite(BITMAP *_src, BITMAP *_dest, signed int _x=0, signed int _y=0, unsigned int _width=0, unsigned int _height=0, bool _alphaBlended = true);
	~MotionBlurredSprite(void);

	void draw();
	void setNumberOfTraces(unsigned int n);

protected:
	std::vector <double> lastX;
	std::vector <double> lastY;

	unsigned int currentDelay;
	unsigned int numberOfTraces;

};
